package com.dd.cloud.user.service.chknowl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.common.vo.PageReq;
import com.dd.cloud.user.entity.chknowl.ChknowlBooksPresent;
import com.dd.cloud.user.entity.chknowl.ChkonwlDoctorBook;
import com.dd.cloud.user.req.chknowl.ChBooksPageReq;
import com.dd.cloud.user.req.chknowl.ChknowlBookDoctorSettingReq;

import java.util.List;

/**
 * <p>
 * 我的书架 服务类
 * </p>
 *
 * @author czg
 * @since 2023-10-17
 */
public interface IChkonwlDoctorBookService extends IService<ChkonwlDoctorBook> {

    /**
     * 我的书籍
     * @param req
     * @return
     */
    IPage<ChknowlBooksPresent> queryDoctorBook(ChBooksPageReq req);

    /**
     * 添加书籍
     * @param bookId
     */
    void addDoctorBook(Integer bookId,Integer doctorId);

    /**
     * 保存医生书籍设置
     * @param req
     */
    void addDoctorBookSetting(ChknowlBookDoctorSettingReq req);

    /**
     * 查询书籍
     * @param bookId
     * @return
     */
    Boolean queryIsHaveBook(Integer bookId,Integer doctorId);

    /**
     * 移除书架
     * @param bookIds
     */
    void chkonwlDoctorBookService(String bookIds,Integer doctorId);
}
